﻿#ifndef SINGLEPARTSETTINGS_H
#define SINGLEPARTSETTINGS_H

#include <QDialog>
#include "image.h"
#include "widget.h"

namespace Ui {
class SinglePartSettings;
}

class SinglePartSettings : public QDialog
{
	Q_OBJECT

private:
	Ui::SinglePartSettings *ui;
	ImagePart *m_part;
	double m_scale;
	int m_contrast;
	bool m_optionCleanImage;

private slots:

	void on_ok_clicked();

	void on_cancel_clicked();

	void on_deflt_clicked();

public:
	explicit SinglePartSettings(ImagePart *part,
								double scale,
								int contrast,
								bool optionCleanImage,
								Widget *parent = 0);
	~SinglePartSettings();

protected:
	void changeEvent(QEvent *e);

};

#endif // SINGLEPARTSETTINGS_H
